home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
manage
/
netdrv.arc
/
NET.BAT
next >
Wrap
DOS Batch File
|
1989-03-28
|
1KB
|
44 lines
echo off
REM NET.BAT
REM This batch file assists in the login process for Novell Netware
REM check to see if user needs help
if {%1}=={help} goto help
if {%1}=={HELP} goto help
:netdrive
REM netdrive leaves user at LOGIN drive
REM netdrive returns errorlevel: 0 if successful
REM 1 if Novell shell not loaded
REM 2 if other error locating drive
c:\net\netdrive
if errorlevel = 1 goto load_shell
if errorlevel = 2 goto error_stop
if errorlevel = 0 goto start_login
REM load the Novell shell
:load_shell
c:\net\ipx
c:\net\net3
c:\net\netdrive
:start_login
REM one last check for success
cd \login
if not exist login.* goto error_stop
echo Logging in to file server
login FS1/%1 %2 %3 %4 %5
goto exit
:error_stop
echo Sorry, unable to locate a network drive.
echo Try re-booting your machine.
:help
echo Type: NET {login name} to login to file server
echo NET HELP for this message
:exit